package com.mingqijia.gassafety.webserver.request.runningReport;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author mby
 * @version 1.0.0
 * @ClassName RunningReportConfigResponse.java
 * @Description
 * @createTime 2024年03月11日
 */

@Data
@ApiModel("设备运行报告生成配置数据")
public class RunningReportEditPreviewRequest {

    @ApiModelProperty(value = "运行报告id")
    @NotNull(message = "运行报告id不能为空！")
    private Integer id;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空！")
    @Pattern(regexp = "^\\d{11}$", message = "手机号格式不正确！")
    private String phone;

    @ApiModelProperty(value = "设备号，imei")
    @NotBlank(message = "设备号不能为空！")
    private String imei;

    @ApiModelProperty(value = "设备类型编码")
    @NotBlank(message = "设备类型不能为空！")
    private String equipmentType;

    @ApiModelProperty(value = "设备类型名称")
    private String equipmentTypeName;

}
